package com.sky.config;

import com.jfinal.config.Interceptors;
import com.sky.intercepter.NotNullParaInterceptor;
import io.jboot.core.listener.JbootAppListenerBase;

/**
 * @author : wushikai
 * <p>
 *
 *     jboot启动配置中心
 * date : 2020-07-24
 */
public class ApplicationJbootListener extends JbootAppListenerBase {




    @Override
    public void onInterceptorConfig(Interceptors interceptors) {
        interceptors.add(new NotNullParaInterceptor("null"));
    }

    @Override
    public void onStart() {

        System.out.println("系统启动中, 数据正在加载....");

        super.onStart();
    }

    @Override
    public void onStop() {
        System.out.println("系统正在关闭, 数据正在保存......");
        super.onStop();
    }


}
